import Vue from 'vue'
import VueRouter from 'vue-router'
import Cart from '../views/Cart.vue'
import Home from '../views/Home.vue'
import My from '../views/My.vue'
import wz from '../views/wz.vue'

Vue.use(VueRouter)

const routes = [
  { path: '/', component: Home },
  { path: '/cart', component: Cart },
  { path: '/my', component: My },
  { path: '/wz', component: wz }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router